<template>
    <div :class="cname" class="com-cnt clear-fix">
        <div class="item border-bottom">
            {{data.info}}
            <span class="icon iconfont" v-html="data.icon"></span>
        </div>
    </div>
</template>

<script>
    export default {
        name: 'rightIconComponent',
        props: {
            cname: '',
            data: {
                type: Object,
                default ( ) {
                    return {
                        title: '标题',
                        icon: '&#xe631;'
                    }
                }
            }
        }
    }
</script>

<style lang="stylus" scoped>
@import '~@/assets/css/varibles.styl'
.com-cnt
    width 100%
    height auto 
    padding 0 $padding
    box-sizing border-box
    .item
        width 100%
        height 35px
        line-height 35px
        color $textColor
        font-size 13px
        position relative
        .icon 
            position absolute
            right 0
            top 0
    
</style>